package com.example.demo.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WJ
 * Date: 2023-02-28
 * Time: 12:38
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HealthFiles {
    private Integer id;
    private Integer older_id;               // 老人id
    private String photo_url;               // 头像
    private String older_name;              // 老人姓名
    private String sex;                     // 性别
    private Integer age;                    // 年龄

    private String id_card;                 // 身份证
    private String address;
    private String clan;
    private String clan_phone;
    private Integer older_employee_id;      // 老人负上属员工id
    private String older_employee_name;     // 老人负责的员工名字
    private String other_info;

    private Float temperature;              // 体温
    private Integer height;                 // 身高(cm)
    private Float weight;                   // 体重(kg)
    private Integer respiratory_rate;       // 呼吸频率(次/min)
    private Integer pulse;                  // 脉搏(次/min)
    private Integer min_pressure;           // 低压(mmHg)  60-90
    private Integer high_pressure;          // 高压(mmHg)  90-130
    private String electrocardiogram;       // 心电图
    private Integer vaccination;            // 接种新冠疫苗的次数
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date create_time;               // 创建时间
    private Integer employee_id;            // 创建档案人id
    private String employee_name;           // 创建档案人的名字

}
